/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.dao;

import com.xy.biz.base.domain.po.DictPropertyPO;

import java.util.Collection;
import java.util.List;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-31
 */
public interface DictPropertyDao {
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDictProperty(Collection<DictPropertyPO> collection);
	
	/**
	 * 删除
	 *
	 * @param collection
	 */
	int deleteAllDictProperty(Collection<Long> collection);

	/**
	 * 删除
	 * @param dictId
	 * @return
	 */
	int deleteDictPropertyByDictId(Long dictId);

	/**
	 * 恢复
	 *
	 * @param collection
	 */
	int restoreAllDictProperty(Collection<Long> collection);
	
	/**
	 * 查找多条
	 *
	 * @param dictId
	 * @param ignoreDeleteFlag
	 * @return
	 */
	List<DictPropertyPO> listDictPropertyByDictId(Long dictId, boolean ignoreDeleteFlag);

	/**
	 *
	 * @param collection
	 * @param ignoreDeleteFlag
	 * @return
	 */
	List<DictPropertyPO> listDictPropertyByDictIds(Collection<Long> collection, boolean ignoreDeleteFlag);

	/**
	 *
	 * @param dictId
	 * @return
	 */
	int getMaxPropertyKey(Long dictId);
	
}
